package com.gateway.client;

import com.client.common.vo.ClientResult;
import com.client.common.vo.ClientUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 授权客户端
 *
 * @author dzh
 * @date 2023/1/30 16:11
 */
@Component
@FeignClient(value = "auth")
public interface AuthClient {

    @GetMapping("user")
    ClientResult<ClientUser> user(@RequestParam("token") String token);
}
